import '../options.dart';
import '../dio.dart';
import '../adapters/browser_adapter.dart';

Dio createDio([BaseOptions options])=>DioForBrowser(options);

class DioForBrowser with DioMixin implements Dio {
  /// Create Dio instance with default [Options].
  /// It's mostly just one Dio instance in your application.
  DioForBrowser([BaseOptions options]) {
    if (options == null) {
      options = BaseOptions();
    }
    this.options = options;
    this.httpClientAdapter=BrowserHttpClientAdapter();
  }
}
